Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: LS2J Error: Threw java.lang.classNotFoundException:
~Keiko Cisfooterynds 22.Oct.03 06:37 AM a Web browser
Applications Development 6.0.2 CF1 All Platforms


I got the same error when I attempted to do a similar operation.

I bet that you are working on a Notes 6 client and a Domino 5 server.

This is exactly my problem, so I suggest that you make a Local copy and run your script from there. I think that you will find that it works proving that the server is not R6.

Another test that you can do is this:

1. Create a Java Script Library called xlib containing the following:
public class calculator {
public int add(int a, int b) { return a + b; }
public int div(int a, int b) { return a / b; }
public int mul(int a, int b) { return a * b; }
public int sub(int a, int b) { return a - b; }
}

2. Create a LotusScript Agent which uses the library
Option Public
Use "xlib"
Uselsx "*javacon"

Sub Initialize
Dim mySession As JavaSession
Dim myClass As JavaClass
Dim calculator As JavaObject
Dim a,b,c As Integer
Set mySession = New JavaSession()
Set myClass = mySession.GetClass("calculator")
Set calculator = myClass.CreateObject()
a = 10
b = 5
c = calculator.mul(a,b)
MessageBox "a * b = " & c
End Sub

Run the program. The answer is 50.

Regards
Rolf Pfotenhauer
Software Engineer
email: rolfpf@yahoo.com.au




LS2J Error: Threw java.lang.classNo... (~Ned Cisfanaste... 28.Jul.03)
. . RE: LS2J Error: Threw java.lang.cla... (~Tanita Quetfre... 29.Jul.03)
. . . . RE: LS2J Error: Threw java.lang.cla... (~Ned Cisfanaste... 29.Jul.03)
. . . . . . RE: LS2J Error: Threw java.lang.cla... (~Tanita Quetfre... 30.Jul.03)
. . . . . . . . RE: LS2J Error: Threw java.lang.cla... (~Ned Cisfanaste... 30.Jul.03)
. . . . . . . . . . RE: LS2J Error: Threw java.lang.cla... (~Tanita Quetfre... 31.Jul.03)
. . . . . . . . . . . . RE: LS2J Error: Threw java.lang.cla... (~Ned Cisfanaste... 31.Jul.03)
. . . . . . . . . . . . . . RE: LS2J Error: Threw java.lang.cla... (~Tanita Quetfre... 1.Aug.03)
. . RE: LS2J Error: Threw java.lang.cla... (~Keiko Cisfoote... 22.Oct.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS